public class Test {
    public static void main(String[] args) {
        String name="name=zhangsan&age=11";
        String[] s=name.split("&");
        for (String ss: s) {
          //  System.out.println(ss);
            String[] s1=ss.split("=");
            for (String sss: s1) {
                System.out.println(sss);


            }
        }
    }
}
